package com.beibei.core.data.dao;

import java.util.List;

import com.beibei.core.data.bean.DataDictionary;

/**
 * 数据字典服务类
 * 
 * @author 309814490@qq.com
 * @since 2014-02-12
 */
public interface IDataDictionaryDao {

	/**
	 * 保存数据字典大类
	 * 
	 * @param dictionary
	 * @return
	 */
	public boolean saveDataDictionary(DataDictionary dictionary);

	/**
	 * 修改数据字典大类
	 * 
	 * @param dictionary
	 * @return
	 */
	public boolean updateDataDictionary(DataDictionary dictionary);

	/**
	 * 根据ID查询数据字典大类
	 * 
	 * @param dictionary
	 * @return
	 */
	public DataDictionary getDataDictionaryById(String id);

	/**
	 * 根据条件分页查询数据字典大类
	 * 
	 * @param dictionary
	 * @return
	 */
	public List<DataDictionary> getDataDictionaryForPager(
			DataDictionary dictionary, int currentPage, int pageSize);

	/**
	 * 保存数据字典小类
	 * 
	 * @param dictionary
	 * @return
	 */
	public boolean saveDataDetail(DataDictionary dictionary);

	/**
	 * 修改数据字典小类
	 * 
	 * @param dictionary
	 * @return
	 */
	public boolean updateDataDetail(DataDictionary dictionary);

	/**
	 * 根据ID查询数据字典小类
	 * 
	 * @param dictionary
	 * @return
	 */
	public DataDictionary getDataDetailById(String id);

	/**
	 * 根据条件分页查询数据字典小类
	 * 
	 * @param dictionary
	 * @return
	 */
	public List<DataDictionary> getDataDetailForPager(
			DataDictionary dictionary, int currentPage, int pageSize);

}
